<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>shark::CSvmTrainer&lt; InputType, CacheType &gt; Class Template Reference</title>
<script type="text/javaScript" src="search/search.js"></script>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3.0.1/es5/tex-mml-chtml.js"></script>
<script src="../../mlstyle.js"></script>
<link href="../css/besser.css" rel="stylesheet" type="text/css"/>
</head>
<!-- pretty cool: each body gets an id tag which is the basename of the web page  -->
<!--              and allows for page-specific CSS. this is client-side scripted, -->
<!--              so the id will not yet show up in the served source code -->
<script type="text/javascript">
    jQuery(document).ready(function () {
        var url = jQuery(location).attr('href');
        var pname = url.substr(url.lastIndexOf("/")+1, url.lastIndexOf(".")-url.lastIndexOf("/")-1);
        jQuery('#this_url').html('<strong>' + pname + '</strong>');
        jQuery('body').attr('id', pname);
    });
</script>
<body>
    <div id="shark_old">
        <div id="wrap">
            <div id="header">
                <div id="site-name"><a href="../../sphinx_pages/build/html/index.html">Shark machine learning library</a></div>
                <ul id="nav">
                    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/installation.html">Installation</a>
                    </li>
		    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/tutorials/tutorials.html">Tutorials</a>
                    </li>
		    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/benchmark.html">Benchmarks</a>
                    </li>
                    <li class="active">
                        <a href="classes.html">Documentation</a>
                        <ul>
                            <li class="first"></li>
                            <li><a href="../../sphinx_pages/build/html/rest_sources/quickref/quickref.html">Quick references</a></li>
                            <li><a href="classes.html">Class list</a></li>
                            <li class="last"><a href="group__shark__globals.html">Global functions</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    </div>
<div id="doxywrapper">
<!--
    <div id="global_doxytitle">Doxygen<br>Documentation:</div>
-->
    <div id="navrow_wrapper">
<!-- Generated by Doxygen 1.9.8 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceshark.html">shark</a></li><li class="navelem"><a class="el" href="classshark_1_1_c_svm_trainer.html">CSvmTrainer</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="classshark_1_1_c_svm_trainer-members.html">List of all members</a> &#124;
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle"><div class="title">shark::CSvmTrainer&lt; InputType, CacheType &gt; Class Template Reference<div class="ingroups"><a class="el" href="group__supervised__trainer.html">Supervised Trainers</a></div></div></div>
</div><!--header-->
<div class="contents">

<p>Training of C-SVMs for binary classification.  
 <a href="classshark_1_1_c_svm_trainer.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_c_svm_trainer_8h_source.html">shark/Algorithms/Trainers/CSvmTrainer.h</a>&gt;</code></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for shark::CSvmTrainer&lt; InputType, CacheType &gt;:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classshark_1_1_c_svm_trainer__inherit__graph.png" border="0" usemap="#ashark_1_1_c_svm_trainer_3_01_input_type_00_01_cache_type_01_4_inherit__map" alt="Inheritance graph"/></div>
<map name="ashark_1_1_c_svm_trainer_3_01_input_type_00_01_cache_type_01_4_inherit__map" id="ashark_1_1_c_svm_trainer_3_01_input_type_00_01_cache_type_01_4_inherit__map">
<area shape="rect" title="Training of C&#45;SVMs for binary classification." alt="" coords="284,28,460,69"/>
<area shape="rect" href="classshark_1_1_abstract_svm_trainer.html" title=" " alt="" coords="5,5,236,91"/>
<area shape="poly" title=" " alt="" coords="251,46,283,46,283,51,251,51"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-types" name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a992b58169d0ffd5be0d355b6432f32da" id="r_a992b58169d0ffd5be0d355b6432f32da"><td class="memItemLeft" align="right" valign="top">typedef CacheType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_c_svm_trainer.html#a992b58169d0ffd5be0d355b6432f32da">QpFloatType</a></td></tr>
<tr class="memdesc:a992b58169d0ffd5be0d355b6432f32da"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convenience typedefs: this and many of the below typedefs build on the class template type CacheType. Simply changing that one template parameter CacheType thus allows to flexibly switch between using float or double as type for caching the kernel values. The default is float, offering sufficient accuracy in the vast majority of cases, at a memory cost of only four bytes. However, the template parameter makes it easy to use double instead, (e.g., in case high accuracy training is needed).  <br /></td></tr>
<tr class="separator:a992b58169d0ffd5be0d355b6432f32da"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abe46b77ba0322531583fe4fe08a5a0d5" id="r_abe46b77ba0322531583fe4fe08a5a0d5"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="classshark_1_1_abstract_kernel_function.html">AbstractKernelFunction</a>&lt; <a class="el" href="classshark_1_1_abstract_weighted_trainer.html#a11e51b154b87ed5e33b6ce2c830cd3d6">InputType</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_c_svm_trainer.html#abe46b77ba0322531583fe4fe08a5a0d5">KernelType</a></td></tr>
<tr class="separator:abe46b77ba0322531583fe4fe08a5a0d5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_types_classshark_1_1_abstract_svm_trainer"><td colspan="2" onclick="javascript:toggleInherit('pub_types_classshark_1_1_abstract_svm_trainer')"><img src="closed.png" alt="-"/>&#160;Public Types inherited from <a class="el" href="classshark_1_1_abstract_svm_trainer.html">shark::AbstractSvmTrainer&lt; InputType, unsigned int, KernelClassifier&lt; InputType &gt;, AbstractWeightedTrainer&lt; KernelClassifier&lt; InputType &gt; &gt; &gt;</a></td></tr>
<tr class="memitem:acb7bddb6bc49cb6162708ad18d5f2ea3 inherit pub_types_classshark_1_1_abstract_svm_trainer" id="r_acb7bddb6bc49cb6162708ad18d5f2ea3"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="classshark_1_1_abstract_kernel_function.html">AbstractKernelFunction</a>&lt; <a class="el" href="classshark_1_1_abstract_weighted_trainer.html#a11e51b154b87ed5e33b6ce2c830cd3d6">InputType</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_svm_trainer.html#acb7bddb6bc49cb6162708ad18d5f2ea3">KernelType</a></td></tr>
<tr class="separator:acb7bddb6bc49cb6162708ad18d5f2ea3 inherit pub_types_classshark_1_1_abstract_svm_trainer"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_types_classshark_1_1_abstract_weighted_trainer"><td colspan="2" onclick="javascript:toggleInherit('pub_types_classshark_1_1_abstract_weighted_trainer')"><img src="closed.png" alt="-"/>&#160;Public Types inherited from <a class="el" href="classshark_1_1_abstract_weighted_trainer.html">shark::AbstractWeightedTrainer&lt; KernelClassifier&lt; InputType &gt; &gt;</a></td></tr>
<tr class="memitem:ad2ad0a52ecd9ac8677df6dbf403b68b4 inherit pub_types_classshark_1_1_abstract_weighted_trainer" id="r_ad2ad0a52ecd9ac8677df6dbf403b68b4"><td class="memItemLeft" align="right" valign="top">typedef base_type::ModelType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_weighted_trainer.html#ad2ad0a52ecd9ac8677df6dbf403b68b4">ModelType</a></td></tr>
<tr class="separator:ad2ad0a52ecd9ac8677df6dbf403b68b4 inherit pub_types_classshark_1_1_abstract_weighted_trainer"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a11e51b154b87ed5e33b6ce2c830cd3d6 inherit pub_types_classshark_1_1_abstract_weighted_trainer" id="r_a11e51b154b87ed5e33b6ce2c830cd3d6"><td class="memItemLeft" align="right" valign="top">typedef base_type::InputType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_weighted_trainer.html#a11e51b154b87ed5e33b6ce2c830cd3d6">InputType</a></td></tr>
<tr class="separator:a11e51b154b87ed5e33b6ce2c830cd3d6 inherit pub_types_classshark_1_1_abstract_weighted_trainer"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8cc4b95c06687c88b75ea8db8187336d inherit pub_types_classshark_1_1_abstract_weighted_trainer" id="r_a8cc4b95c06687c88b75ea8db8187336d"><td class="memItemLeft" align="right" valign="top">typedef base_type::LabelType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_weighted_trainer.html#a8cc4b95c06687c88b75ea8db8187336d">LabelType</a></td></tr>
<tr class="separator:a8cc4b95c06687c88b75ea8db8187336d inherit pub_types_classshark_1_1_abstract_weighted_trainer"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8c8370c0d2c2550a50df4d6b0bccf42b inherit pub_types_classshark_1_1_abstract_weighted_trainer" id="r_a8c8370c0d2c2550a50df4d6b0bccf42b"><td class="memItemLeft" align="right" valign="top">typedef base_type::DatasetType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_weighted_trainer.html#a8c8370c0d2c2550a50df4d6b0bccf42b">DatasetType</a></td></tr>
<tr class="separator:a8c8370c0d2c2550a50df4d6b0bccf42b inherit pub_types_classshark_1_1_abstract_weighted_trainer"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab6d74ebe9e01f9eefb70f9eb12738ffe inherit pub_types_classshark_1_1_abstract_weighted_trainer" id="r_ab6d74ebe9e01f9eefb70f9eb12738ffe"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="classshark_1_1_weighted_labeled_data.html">WeightedLabeledData</a>&lt; <a class="el" href="classshark_1_1_abstract_weighted_trainer.html#a11e51b154b87ed5e33b6ce2c830cd3d6">InputType</a>, <a class="el" href="classshark_1_1_abstract_weighted_trainer.html#a8cc4b95c06687c88b75ea8db8187336d">LabelType</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_weighted_trainer.html#ab6d74ebe9e01f9eefb70f9eb12738ffe">WeightedDatasetType</a></td></tr>
<tr class="separator:ab6d74ebe9e01f9eefb70f9eb12738ffe inherit pub_types_classshark_1_1_abstract_weighted_trainer"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_types_classshark_1_1_abstract_trainer"><td colspan="2" onclick="javascript:toggleInherit('pub_types_classshark_1_1_abstract_trainer')"><img src="closed.png" alt="-"/>&#160;Public Types inherited from <a class="el" href="classshark_1_1_abstract_trainer.html">shark::AbstractTrainer&lt; Model, LabelTypeT &gt;</a></td></tr>
<tr class="memitem:a0d5c9d35b614d6a33e4e8bfeaf1e9298 inherit pub_types_classshark_1_1_abstract_trainer" id="r_a0d5c9d35b614d6a33e4e8bfeaf1e9298"><td class="memItemLeft" align="right" valign="top">typedef Model&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_trainer.html#a0d5c9d35b614d6a33e4e8bfeaf1e9298">ModelType</a></td></tr>
<tr class="separator:a0d5c9d35b614d6a33e4e8bfeaf1e9298 inherit pub_types_classshark_1_1_abstract_trainer"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0cfa7cdd27b8bb162e64188095f8fa71 inherit pub_types_classshark_1_1_abstract_trainer" id="r_a0cfa7cdd27b8bb162e64188095f8fa71"><td class="memItemLeft" align="right" valign="top">typedef ModelType::InputType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_trainer.html#a0cfa7cdd27b8bb162e64188095f8fa71">InputType</a></td></tr>
<tr class="separator:a0cfa7cdd27b8bb162e64188095f8fa71 inherit pub_types_classshark_1_1_abstract_trainer"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa4e344106831fb8227c2120681588ea9 inherit pub_types_classshark_1_1_abstract_trainer" id="r_aa4e344106831fb8227c2120681588ea9"><td class="memItemLeft" align="right" valign="top">typedef LabelTypeT&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_trainer.html#aa4e344106831fb8227c2120681588ea9">LabelType</a></td></tr>
<tr class="separator:aa4e344106831fb8227c2120681588ea9 inherit pub_types_classshark_1_1_abstract_trainer"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa4730fe9d59622d35d95cd4233f8d7af inherit pub_types_classshark_1_1_abstract_trainer" id="r_aa4730fe9d59622d35d95cd4233f8d7af"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="classshark_1_1_labeled_data.html">LabeledData</a>&lt; <a class="el" href="classshark_1_1_abstract_trainer.html#a0cfa7cdd27b8bb162e64188095f8fa71">InputType</a>, <a class="el" href="classshark_1_1_abstract_trainer.html#aa4e344106831fb8227c2120681588ea9">LabelType</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_trainer.html#aa4730fe9d59622d35d95cd4233f8d7af">DatasetType</a></td></tr>
<tr class="separator:aa4730fe9d59622d35d95cd4233f8d7af inherit pub_types_classshark_1_1_abstract_trainer"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_types_classshark_1_1_i_parameterizable"><td colspan="2" onclick="javascript:toggleInherit('pub_types_classshark_1_1_i_parameterizable')"><img src="closed.png" alt="-"/>&#160;Public Types inherited from <a class="el" href="classshark_1_1_i_parameterizable.html">shark::IParameterizable&lt; VectorType &gt;</a></td></tr>
<tr class="memitem:a2ad5e2e60b2b352988b41f46024d790b inherit pub_types_classshark_1_1_i_parameterizable" id="r_a2ad5e2e60b2b352988b41f46024d790b"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="_c_svm_linear_8cpp.html#ab106d665148183a2dc94dcf8716c9203">VectorType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_i_parameterizable.html#a2ad5e2e60b2b352988b41f46024d790b">ParameterVectorType</a></td></tr>
<tr class="separator:a2ad5e2e60b2b352988b41f46024d790b inherit pub_types_classshark_1_1_i_parameterizable"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ab9e81925c8a8a25db71614edcae230f0" id="r_ab9e81925c8a8a25db71614edcae230f0"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_c_svm_trainer.html#ab9e81925c8a8a25db71614edcae230f0">CSvmTrainer</a> (<a class="el" href="classshark_1_1_c_svm_trainer.html#abe46b77ba0322531583fe4fe08a5a0d5">KernelType</a> *<a class="el" href="classshark_1_1_abstract_svm_trainer.html#a084595212c691b938fe6d421f40a908b">kernel</a>, double <a class="el" href="classshark_1_1_abstract_svm_trainer.html#a7bc3baa63458c785155a231ca73ea483">C</a>, bool offset, bool unconstrained=false)</td></tr>
<tr class="separator:ab9e81925c8a8a25db71614edcae230f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a055a354238f55019457ffcdc7c5d8d76" id="r_a055a354238f55019457ffcdc7c5d8d76"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_c_svm_trainer.html#a055a354238f55019457ffcdc7c5d8d76">CSvmTrainer</a> (<a class="el" href="classshark_1_1_c_svm_trainer.html#abe46b77ba0322531583fe4fe08a5a0d5">KernelType</a> *<a class="el" href="classshark_1_1_abstract_svm_trainer.html#a084595212c691b938fe6d421f40a908b">kernel</a>, double negativeC, double positiveC, bool offset, bool unconstrained=false)</td></tr>
<tr class="separator:a055a354238f55019457ffcdc7c5d8d76"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9dc25f037d2af2005d1fbfd52ceffb55" id="r_a9dc25f037d2af2005d1fbfd52ceffb55"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_c_svm_trainer.html#a9dc25f037d2af2005d1fbfd52ceffb55">name</a> () const</td></tr>
<tr class="memdesc:a9dc25f037d2af2005d1fbfd52ceffb55"><td class="mdescLeft">&#160;</td><td class="mdescRight">From <a class="el" href="classshark_1_1_i_nameable.html" title="This class is an interface for all objects which can have a name.">INameable</a>: return the class name.  <br /></td></tr>
<tr class="separator:a9dc25f037d2af2005d1fbfd52ceffb55"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7fdb7e988fa0949ca5e96faf9c7bcf48" id="r_a7fdb7e988fa0949ca5e96faf9c7bcf48"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_c_svm_trainer.html#a7fdb7e988fa0949ca5e96faf9c7bcf48">setComputeBinaryDerivative</a> (bool compute)</td></tr>
<tr class="separator:a7fdb7e988fa0949ca5e96faf9c7bcf48"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac9d92bc56fc0a8fa0d73631cb3cbf323" id="r_ac9d92bc56fc0a8fa0d73631cb3cbf323"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_c_svm_trainer.html#ac9d92bc56fc0a8fa0d73631cb3cbf323">setMcSvmType</a> (<a class="el" href="namespaceshark.html#acd7a165c1049db7d676d77e708f53112">McSvm</a> type)</td></tr>
<tr class="memdesc:ac9d92bc56fc0a8fa0d73631cb3cbf323"><td class="mdescLeft">&#160;</td><td class="mdescRight">sets the type of the multi-class svm used  <br /></td></tr>
<tr class="separator:ac9d92bc56fc0a8fa0d73631cb3cbf323"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9e801518bfba9d02e0749181a5deb0fc" id="r_a9e801518bfba9d02e0749181a5deb0fc"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_c_svm_trainer.html#a9e801518bfba9d02e0749181a5deb0fc">train</a> (<a class="el" href="structshark_1_1_kernel_classifier.html">KernelClassifier</a>&lt; <a class="el" href="classshark_1_1_abstract_weighted_trainer.html#a11e51b154b87ed5e33b6ce2c830cd3d6">InputType</a> &gt; &amp;svm, <a class="el" href="classshark_1_1_labeled_data.html">LabeledData</a>&lt; <a class="el" href="classshark_1_1_abstract_weighted_trainer.html#a11e51b154b87ed5e33b6ce2c830cd3d6">InputType</a>, unsigned int &gt; const &amp;dataset)</td></tr>
<tr class="memdesc:a9e801518bfba9d02e0749181a5deb0fc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Train the C-SVM.  <br /></td></tr>
<tr class="separator:a9e801518bfba9d02e0749181a5deb0fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5444acc9ade8ab1c3550bd2efafa4e59" id="r_a5444acc9ade8ab1c3550bd2efafa4e59"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_c_svm_trainer.html#a5444acc9ade8ab1c3550bd2efafa4e59">train</a> (<a class="el" href="structshark_1_1_kernel_classifier.html">KernelClassifier</a>&lt; <a class="el" href="classshark_1_1_abstract_weighted_trainer.html#a11e51b154b87ed5e33b6ce2c830cd3d6">InputType</a> &gt; &amp;svm, <a class="el" href="classshark_1_1_weighted_labeled_data.html">WeightedLabeledData</a>&lt; <a class="el" href="classshark_1_1_abstract_weighted_trainer.html#a11e51b154b87ed5e33b6ce2c830cd3d6">InputType</a>, unsigned int &gt; const &amp;dataset)</td></tr>
<tr class="memdesc:a5444acc9ade8ab1c3550bd2efafa4e59"><td class="mdescLeft">&#160;</td><td class="mdescRight">Train the C-SVM using weights.  <br /></td></tr>
<tr class="separator:a5444acc9ade8ab1c3550bd2efafa4e59"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa41c04a121457ef9ace253feac0bf42d" id="r_aa41c04a121457ef9ace253feac0bf42d"><td class="memItemLeft" align="right" valign="top">RealVector const &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_c_svm_trainer.html#aa41c04a121457ef9ace253feac0bf42d">get_db_dParams</a> () const</td></tr>
<tr class="separator:aa41c04a121457ef9ace253feac0bf42d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classshark_1_1_abstract_svm_trainer"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classshark_1_1_abstract_svm_trainer')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classshark_1_1_abstract_svm_trainer.html">shark::AbstractSvmTrainer&lt; InputType, unsigned int, KernelClassifier&lt; InputType &gt;, AbstractWeightedTrainer&lt; KernelClassifier&lt; InputType &gt; &gt; &gt;</a></td></tr>
<tr class="memitem:aab27c6424184668af4f785f525ca3a84 inherit pub_methods_classshark_1_1_abstract_svm_trainer" id="r_aab27c6424184668af4f785f525ca3a84"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_svm_trainer.html#aab27c6424184668af4f785f525ca3a84">AbstractSvmTrainer</a> (<a class="el" href="classshark_1_1_abstract_svm_trainer.html#acb7bddb6bc49cb6162708ad18d5f2ea3">KernelType</a> *kernel, double C, bool offset, bool unconstrained=false)</td></tr>
<tr class="separator:aab27c6424184668af4f785f525ca3a84 inherit pub_methods_classshark_1_1_abstract_svm_trainer"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5ac083639404d8d334e38d45f777e0af inherit pub_methods_classshark_1_1_abstract_svm_trainer" id="r_a5ac083639404d8d334e38d45f777e0af"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_svm_trainer.html#a5ac083639404d8d334e38d45f777e0af">AbstractSvmTrainer</a> (<a class="el" href="classshark_1_1_abstract_svm_trainer.html#acb7bddb6bc49cb6162708ad18d5f2ea3">KernelType</a> *kernel, double negativeC, double positiveC, bool offset, bool unconstrained=false)</td></tr>
<tr class="separator:a5ac083639404d8d334e38d45f777e0af inherit pub_methods_classshark_1_1_abstract_svm_trainer"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7bc3baa63458c785155a231ca73ea483 inherit pub_methods_classshark_1_1_abstract_svm_trainer" id="r_a7bc3baa63458c785155a231ca73ea483"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_svm_trainer.html#a7bc3baa63458c785155a231ca73ea483">C</a> () const</td></tr>
<tr class="memdesc:a7bc3baa63458c785155a231ca73ea483 inherit pub_methods_classshark_1_1_abstract_svm_trainer"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the value of the regularization parameter C.  <br /></td></tr>
<tr class="separator:a7bc3baa63458c785155a231ca73ea483 inherit pub_methods_classshark_1_1_abstract_svm_trainer"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a63d60b7731298e655952bbf42d1ce2d8 inherit pub_methods_classshark_1_1_abstract_svm_trainer" id="r_a63d60b7731298e655952bbf42d1ce2d8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_svm_trainer.html#a63d60b7731298e655952bbf42d1ce2d8">setC</a> (double C)</td></tr>
<tr class="memdesc:a63d60b7731298e655952bbf42d1ce2d8 inherit pub_methods_classshark_1_1_abstract_svm_trainer"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the value of the regularization parameter C.  <br /></td></tr>
<tr class="separator:a63d60b7731298e655952bbf42d1ce2d8 inherit pub_methods_classshark_1_1_abstract_svm_trainer"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad06550eb45e46ff02e4789ea1b916c75 inherit pub_methods_classshark_1_1_abstract_svm_trainer" id="r_ad06550eb45e46ff02e4789ea1b916c75"><td class="memItemLeft" align="right" valign="top">RealVector const &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_svm_trainer.html#ad06550eb45e46ff02e4789ea1b916c75">regularizationParameters</a> () const</td></tr>
<tr class="separator:ad06550eb45e46ff02e4789ea1b916c75 inherit pub_methods_classshark_1_1_abstract_svm_trainer"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad3ff1a54a5eb915e631e70e26e8727ce inherit pub_methods_classshark_1_1_abstract_svm_trainer" id="r_ad3ff1a54a5eb915e631e70e26e8727ce"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_svm_trainer.html#ad3ff1a54a5eb915e631e70e26e8727ce">setRegularizationParameters</a> (RealVector const &amp;regularizers)</td></tr>
<tr class="memdesc:ad3ff1a54a5eb915e631e70e26e8727ce inherit pub_methods_classshark_1_1_abstract_svm_trainer"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the value of the regularization parameter C.  <br /></td></tr>
<tr class="separator:ad3ff1a54a5eb915e631e70e26e8727ce inherit pub_methods_classshark_1_1_abstract_svm_trainer"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a084595212c691b938fe6d421f40a908b inherit pub_methods_classshark_1_1_abstract_svm_trainer" id="r_a084595212c691b938fe6d421f40a908b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classshark_1_1_abstract_svm_trainer.html#acb7bddb6bc49cb6162708ad18d5f2ea3">KernelType</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_svm_trainer.html#a084595212c691b938fe6d421f40a908b">kernel</a> ()</td></tr>
<tr class="separator:a084595212c691b938fe6d421f40a908b inherit pub_methods_classshark_1_1_abstract_svm_trainer"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6342c2fd51de7927c41090c8644c29f8 inherit pub_methods_classshark_1_1_abstract_svm_trainer" id="r_a6342c2fd51de7927c41090c8644c29f8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classshark_1_1_abstract_svm_trainer.html#acb7bddb6bc49cb6162708ad18d5f2ea3">KernelType</a> const *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_svm_trainer.html#a6342c2fd51de7927c41090c8644c29f8">kernel</a> () const</td></tr>
<tr class="separator:a6342c2fd51de7927c41090c8644c29f8 inherit pub_methods_classshark_1_1_abstract_svm_trainer"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4ff39ade04048830ec052be74d185a39 inherit pub_methods_classshark_1_1_abstract_svm_trainer" id="r_a4ff39ade04048830ec052be74d185a39"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_svm_trainer.html#a4ff39ade04048830ec052be74d185a39">setKernel</a> (<a class="el" href="classshark_1_1_abstract_svm_trainer.html#acb7bddb6bc49cb6162708ad18d5f2ea3">KernelType</a> *kernel)</td></tr>
<tr class="separator:a4ff39ade04048830ec052be74d185a39 inherit pub_methods_classshark_1_1_abstract_svm_trainer"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a787df0ebf0c01da4f3e900e0f3ad109a inherit pub_methods_classshark_1_1_abstract_svm_trainer" id="r_a787df0ebf0c01da4f3e900e0f3ad109a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_svm_trainer.html#a787df0ebf0c01da4f3e900e0f3ad109a">isUnconstrained</a> () const</td></tr>
<tr class="separator:a787df0ebf0c01da4f3e900e0f3ad109a inherit pub_methods_classshark_1_1_abstract_svm_trainer"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae0c02e31cdae3482f37155eb788eb979 inherit pub_methods_classshark_1_1_abstract_svm_trainer" id="r_ae0c02e31cdae3482f37155eb788eb979"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_svm_trainer.html#ae0c02e31cdae3482f37155eb788eb979">trainOffset</a> () const</td></tr>
<tr class="separator:ae0c02e31cdae3482f37155eb788eb979 inherit pub_methods_classshark_1_1_abstract_svm_trainer"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a954cc587b52b4ec5a347134804dfc812 inherit pub_methods_classshark_1_1_abstract_svm_trainer" id="r_a954cc587b52b4ec5a347134804dfc812"><td class="memItemLeft" align="right" valign="top">std::size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_svm_trainer.html#a954cc587b52b4ec5a347134804dfc812">cacheSize</a> () const</td></tr>
<tr class="separator:a954cc587b52b4ec5a347134804dfc812 inherit pub_methods_classshark_1_1_abstract_svm_trainer"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aee037566828dae85ee2e117e71121edd inherit pub_methods_classshark_1_1_abstract_svm_trainer" id="r_aee037566828dae85ee2e117e71121edd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_svm_trainer.html#aee037566828dae85ee2e117e71121edd">setCacheSize</a> (std::size_t size)</td></tr>
<tr class="separator:aee037566828dae85ee2e117e71121edd inherit pub_methods_classshark_1_1_abstract_svm_trainer"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a183757faebfc331f6733946a6ea7de2c inherit pub_methods_classshark_1_1_abstract_svm_trainer" id="r_a183757faebfc331f6733946a6ea7de2c"><td class="memItemLeft" align="right" valign="top">RealVector&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_svm_trainer.html#a183757faebfc331f6733946a6ea7de2c">parameterVector</a> () const</td></tr>
<tr class="memdesc:a183757faebfc331f6733946a6ea7de2c inherit pub_methods_classshark_1_1_abstract_svm_trainer"><td class="mdescLeft">&#160;</td><td class="mdescRight">get the hyper-parameter vector  <br /></td></tr>
<tr class="separator:a183757faebfc331f6733946a6ea7de2c inherit pub_methods_classshark_1_1_abstract_svm_trainer"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aecde2bab6daf3fa44b94438c7ba79a24 inherit pub_methods_classshark_1_1_abstract_svm_trainer" id="r_aecde2bab6daf3fa44b94438c7ba79a24"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_svm_trainer.html#aecde2bab6daf3fa44b94438c7ba79a24">setParameterVector</a> (RealVector const &amp;newParameters)</td></tr>
<tr class="memdesc:aecde2bab6daf3fa44b94438c7ba79a24 inherit pub_methods_classshark_1_1_abstract_svm_trainer"><td class="mdescLeft">&#160;</td><td class="mdescRight">set the vector of hyper-parameters  <br /></td></tr>
<tr class="separator:aecde2bab6daf3fa44b94438c7ba79a24 inherit pub_methods_classshark_1_1_abstract_svm_trainer"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab4f0632a6c463dca0103a38a6305c38c inherit pub_methods_classshark_1_1_abstract_svm_trainer" id="r_ab4f0632a6c463dca0103a38a6305c38c"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_svm_trainer.html#ab4f0632a6c463dca0103a38a6305c38c">numberOfParameters</a> () const</td></tr>
<tr class="memdesc:ab4f0632a6c463dca0103a38a6305c38c inherit pub_methods_classshark_1_1_abstract_svm_trainer"><td class="mdescLeft">&#160;</td><td class="mdescRight">return the number of hyper-parameters  <br /></td></tr>
<tr class="separator:ab4f0632a6c463dca0103a38a6305c38c inherit pub_methods_classshark_1_1_abstract_svm_trainer"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classshark_1_1_abstract_weighted_trainer"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classshark_1_1_abstract_weighted_trainer')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classshark_1_1_abstract_weighted_trainer.html">shark::AbstractWeightedTrainer&lt; KernelClassifier&lt; InputType &gt; &gt;</a></td></tr>
<tr class="memitem:ad35ae0b236c45b73f749285a54288e89 inherit pub_methods_classshark_1_1_abstract_weighted_trainer" id="r_ad35ae0b236c45b73f749285a54288e89"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_weighted_trainer.html#ad35ae0b236c45b73f749285a54288e89">train</a> (<a class="el" href="classshark_1_1_abstract_weighted_trainer.html#ad2ad0a52ecd9ac8677df6dbf403b68b4">ModelType</a> &amp;model, <a class="el" href="classshark_1_1_abstract_weighted_trainer.html#ab6d74ebe9e01f9eefb70f9eb12738ffe">WeightedDatasetType</a> const &amp;dataset)=0</td></tr>
<tr class="memdesc:ad35ae0b236c45b73f749285a54288e89 inherit pub_methods_classshark_1_1_abstract_weighted_trainer"><td class="mdescLeft">&#160;</td><td class="mdescRight">Executes the algorithm and trains a model on the given weighted data.  <br /></td></tr>
<tr class="separator:ad35ae0b236c45b73f749285a54288e89 inherit pub_methods_classshark_1_1_abstract_weighted_trainer"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9e5711480e4f1e214ff3c30a9604d10a inherit pub_methods_classshark_1_1_abstract_weighted_trainer" id="r_a9e5711480e4f1e214ff3c30a9604d10a"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_weighted_trainer.html#a9e5711480e4f1e214ff3c30a9604d10a">train</a> (<a class="el" href="classshark_1_1_abstract_weighted_trainer.html#ad2ad0a52ecd9ac8677df6dbf403b68b4">ModelType</a> &amp;model, <a class="el" href="classshark_1_1_abstract_weighted_trainer.html#a8c8370c0d2c2550a50df4d6b0bccf42b">DatasetType</a> const &amp;dataset)</td></tr>
<tr class="memdesc:a9e5711480e4f1e214ff3c30a9604d10a inherit pub_methods_classshark_1_1_abstract_weighted_trainer"><td class="mdescLeft">&#160;</td><td class="mdescRight">Executes the algorithm and trains a model on the given unweighted data.  <br /></td></tr>
<tr class="separator:a9e5711480e4f1e214ff3c30a9604d10a inherit pub_methods_classshark_1_1_abstract_weighted_trainer"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classshark_1_1_abstract_trainer"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classshark_1_1_abstract_trainer')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classshark_1_1_abstract_trainer.html">shark::AbstractTrainer&lt; Model, LabelTypeT &gt;</a></td></tr>
<tr class="memitem:a71d3fd2567473d746ecb733d7fa28c7e inherit pub_methods_classshark_1_1_abstract_trainer" id="r_a71d3fd2567473d746ecb733d7fa28c7e"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_trainer.html#a71d3fd2567473d746ecb733d7fa28c7e">train</a> (<a class="el" href="classshark_1_1_abstract_trainer.html#a0d5c9d35b614d6a33e4e8bfeaf1e9298">ModelType</a> &amp;model, <a class="el" href="classshark_1_1_abstract_trainer.html#aa4730fe9d59622d35d95cd4233f8d7af">DatasetType</a> const &amp;dataset)=0</td></tr>
<tr class="memdesc:a71d3fd2567473d746ecb733d7fa28c7e inherit pub_methods_classshark_1_1_abstract_trainer"><td class="mdescLeft">&#160;</td><td class="mdescRight">Core of the Trainer interface.  <br /></td></tr>
<tr class="separator:a71d3fd2567473d746ecb733d7fa28c7e inherit pub_methods_classshark_1_1_abstract_trainer"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classshark_1_1_i_nameable"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classshark_1_1_i_nameable')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classshark_1_1_i_nameable.html">shark::INameable</a></td></tr>
<tr class="memitem:a877dbdfc6b58ea836495143cea44a98c inherit pub_methods_classshark_1_1_i_nameable" id="r_a877dbdfc6b58ea836495143cea44a98c"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_i_nameable.html#a877dbdfc6b58ea836495143cea44a98c">~INameable</a> ()</td></tr>
<tr class="separator:a877dbdfc6b58ea836495143cea44a98c inherit pub_methods_classshark_1_1_i_nameable"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classshark_1_1_i_serializable"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classshark_1_1_i_serializable')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classshark_1_1_i_serializable.html">shark::ISerializable</a></td></tr>
<tr class="memitem:a7baa9ce108d7278822297ce15882782a inherit pub_methods_classshark_1_1_i_serializable" id="r_a7baa9ce108d7278822297ce15882782a"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_i_serializable.html#a7baa9ce108d7278822297ce15882782a">~ISerializable</a> ()</td></tr>
<tr class="memdesc:a7baa9ce108d7278822297ce15882782a inherit pub_methods_classshark_1_1_i_serializable"><td class="mdescLeft">&#160;</td><td class="mdescRight">Virtual d'tor.  <br /></td></tr>
<tr class="separator:a7baa9ce108d7278822297ce15882782a inherit pub_methods_classshark_1_1_i_serializable"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad4ad9a7c274deff642f91e98417fbc63 inherit pub_methods_classshark_1_1_i_serializable" id="r_ad4ad9a7c274deff642f91e98417fbc63"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_i_serializable.html#ad4ad9a7c274deff642f91e98417fbc63">read</a> (<a class="el" href="namespaceshark.html#ada68729491840669e47c8ad42282424f">InArchive</a> &amp;archive)</td></tr>
<tr class="memdesc:ad4ad9a7c274deff642f91e98417fbc63 inherit pub_methods_classshark_1_1_i_serializable"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read the component from the supplied archive.  <br /></td></tr>
<tr class="separator:ad4ad9a7c274deff642f91e98417fbc63 inherit pub_methods_classshark_1_1_i_serializable"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9bddedd42933c922e323b73131f62f12 inherit pub_methods_classshark_1_1_i_serializable" id="r_a9bddedd42933c922e323b73131f62f12"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_i_serializable.html#a9bddedd42933c922e323b73131f62f12">write</a> (<a class="el" href="namespaceshark.html#af4f8eb8e9618f5236b71bbcb12b8a524">OutArchive</a> &amp;archive) const</td></tr>
<tr class="memdesc:a9bddedd42933c922e323b73131f62f12 inherit pub_methods_classshark_1_1_i_serializable"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write the component to the supplied archive.  <br /></td></tr>
<tr class="separator:a9bddedd42933c922e323b73131f62f12 inherit pub_methods_classshark_1_1_i_serializable"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abdda0c5b8e065b8afbac2cba8f58e841 inherit pub_methods_classshark_1_1_i_serializable" id="r_abdda0c5b8e065b8afbac2cba8f58e841"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_i_serializable.html#abdda0c5b8e065b8afbac2cba8f58e841">load</a> (<a class="el" href="namespaceshark.html#ada68729491840669e47c8ad42282424f">InArchive</a> &amp;archive, unsigned int version)</td></tr>
<tr class="memdesc:abdda0c5b8e065b8afbac2cba8f58e841 inherit pub_methods_classshark_1_1_i_serializable"><td class="mdescLeft">&#160;</td><td class="mdescRight">Versioned loading of components, calls read(...).  <br /></td></tr>
<tr class="separator:abdda0c5b8e065b8afbac2cba8f58e841 inherit pub_methods_classshark_1_1_i_serializable"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5bf66fa8db15cc529bec98976a2f5255 inherit pub_methods_classshark_1_1_i_serializable" id="r_a5bf66fa8db15cc529bec98976a2f5255"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_i_serializable.html#a5bf66fa8db15cc529bec98976a2f5255">save</a> (<a class="el" href="namespaceshark.html#af4f8eb8e9618f5236b71bbcb12b8a524">OutArchive</a> &amp;archive, unsigned int version) const</td></tr>
<tr class="memdesc:a5bf66fa8db15cc529bec98976a2f5255 inherit pub_methods_classshark_1_1_i_serializable"><td class="mdescLeft">&#160;</td><td class="mdescRight">Versioned storing of components, calls write(...).  <br /></td></tr>
<tr class="separator:a5bf66fa8db15cc529bec98976a2f5255 inherit pub_methods_classshark_1_1_i_serializable"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4560a94e8f4908fe8627e41e7d965735 inherit pub_methods_classshark_1_1_i_serializable" id="r_a4560a94e8f4908fe8627e41e7d965735"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_i_serializable.html#a4560a94e8f4908fe8627e41e7d965735">BOOST_SERIALIZATION_SPLIT_MEMBER</a> ()</td></tr>
<tr class="separator:a4560a94e8f4908fe8627e41e7d965735 inherit pub_methods_classshark_1_1_i_serializable"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classshark_1_1_qp_config"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classshark_1_1_qp_config')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classshark_1_1_qp_config.html">shark::QpConfig</a></td></tr>
<tr class="memitem:afca82d9f41e7ca9dc16f958571143ea4 inherit pub_methods_classshark_1_1_qp_config" id="r_afca82d9f41e7ca9dc16f958571143ea4"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_qp_config.html#afca82d9f41e7ca9dc16f958571143ea4">QpConfig</a> (bool precomputedFlag=false, bool sparsifyFlag=true)</td></tr>
<tr class="memdesc:afca82d9f41e7ca9dc16f958571143ea4 inherit pub_methods_classshark_1_1_qp_config"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor.  <br /></td></tr>
<tr class="separator:afca82d9f41e7ca9dc16f958571143ea4 inherit pub_methods_classshark_1_1_qp_config"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a66fa342063f4fb0c8686a821dd14370e inherit pub_methods_classshark_1_1_qp_config" id="r_a66fa342063f4fb0c8686a821dd14370e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structshark_1_1_qp_stopping_condition.html">QpStoppingCondition</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_qp_config.html#a66fa342063f4fb0c8686a821dd14370e">stoppingCondition</a> ()</td></tr>
<tr class="memdesc:a66fa342063f4fb0c8686a821dd14370e inherit pub_methods_classshark_1_1_qp_config"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read/write access to the stopping condition.  <br /></td></tr>
<tr class="separator:a66fa342063f4fb0c8686a821dd14370e inherit pub_methods_classshark_1_1_qp_config"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa26b91d3c5f8907fdf977e3dafedc9a7 inherit pub_methods_classshark_1_1_qp_config" id="r_aa26b91d3c5f8907fdf977e3dafedc9a7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structshark_1_1_qp_stopping_condition.html">QpStoppingCondition</a> const &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_qp_config.html#aa26b91d3c5f8907fdf977e3dafedc9a7">stoppingCondition</a> () const</td></tr>
<tr class="memdesc:aa26b91d3c5f8907fdf977e3dafedc9a7 inherit pub_methods_classshark_1_1_qp_config"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read access to the stopping condition.  <br /></td></tr>
<tr class="separator:aa26b91d3c5f8907fdf977e3dafedc9a7 inherit pub_methods_classshark_1_1_qp_config"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0ea8552b2732cbfe664b7d0706c46d80 inherit pub_methods_classshark_1_1_qp_config" id="r_a0ea8552b2732cbfe664b7d0706c46d80"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structshark_1_1_qp_solution_properties.html">QpSolutionProperties</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_qp_config.html#a0ea8552b2732cbfe664b7d0706c46d80">solutionProperties</a> ()</td></tr>
<tr class="memdesc:a0ea8552b2732cbfe664b7d0706c46d80 inherit pub_methods_classshark_1_1_qp_config"><td class="mdescLeft">&#160;</td><td class="mdescRight">Access to the solution properties.  <br /></td></tr>
<tr class="separator:a0ea8552b2732cbfe664b7d0706c46d80 inherit pub_methods_classshark_1_1_qp_config"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae90c5c93fc02fad6fc07ca6b04fc78cc inherit pub_methods_classshark_1_1_qp_config" id="r_ae90c5c93fc02fad6fc07ca6b04fc78cc"><td class="memItemLeft" align="right" valign="top">bool &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_qp_config.html#ae90c5c93fc02fad6fc07ca6b04fc78cc">precomputeKernel</a> ()</td></tr>
<tr class="memdesc:ae90c5c93fc02fad6fc07ca6b04fc78cc inherit pub_methods_classshark_1_1_qp_config"><td class="mdescLeft">&#160;</td><td class="mdescRight">Flag for using a precomputed kernel matrix.  <br /></td></tr>
<tr class="separator:ae90c5c93fc02fad6fc07ca6b04fc78cc inherit pub_methods_classshark_1_1_qp_config"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0de2262f5cfb80a3b42706a5121a53e5 inherit pub_methods_classshark_1_1_qp_config" id="r_a0de2262f5cfb80a3b42706a5121a53e5"><td class="memItemLeft" align="right" valign="top">bool const &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_qp_config.html#a0de2262f5cfb80a3b42706a5121a53e5">precomputeKernel</a> () const</td></tr>
<tr class="memdesc:a0de2262f5cfb80a3b42706a5121a53e5 inherit pub_methods_classshark_1_1_qp_config"><td class="mdescLeft">&#160;</td><td class="mdescRight">Flag for using a precomputed kernel matrix.  <br /></td></tr>
<tr class="separator:a0de2262f5cfb80a3b42706a5121a53e5 inherit pub_methods_classshark_1_1_qp_config"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a32477b55142b80bd9f82f2a2e201f5b9 inherit pub_methods_classshark_1_1_qp_config" id="r_a32477b55142b80bd9f82f2a2e201f5b9"><td class="memItemLeft" align="right" valign="top">bool &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_qp_config.html#a32477b55142b80bd9f82f2a2e201f5b9">sparsify</a> ()</td></tr>
<tr class="memdesc:a32477b55142b80bd9f82f2a2e201f5b9 inherit pub_methods_classshark_1_1_qp_config"><td class="mdescLeft">&#160;</td><td class="mdescRight">Flag for sparsifying the model after training.  <br /></td></tr>
<tr class="separator:a32477b55142b80bd9f82f2a2e201f5b9 inherit pub_methods_classshark_1_1_qp_config"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7af8db760393211a1c1416d3b1f53611 inherit pub_methods_classshark_1_1_qp_config" id="r_a7af8db760393211a1c1416d3b1f53611"><td class="memItemLeft" align="right" valign="top">bool const &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_qp_config.html#a7af8db760393211a1c1416d3b1f53611">sparsify</a> () const</td></tr>
<tr class="memdesc:a7af8db760393211a1c1416d3b1f53611 inherit pub_methods_classshark_1_1_qp_config"><td class="mdescLeft">&#160;</td><td class="mdescRight">Flag for sparsifying the model after training.  <br /></td></tr>
<tr class="separator:a7af8db760393211a1c1416d3b1f53611 inherit pub_methods_classshark_1_1_qp_config"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab538a92231c05e20575f181b06c5689d inherit pub_methods_classshark_1_1_qp_config" id="r_ab538a92231c05e20575f181b06c5689d"><td class="memItemLeft" align="right" valign="top">bool &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_qp_config.html#ab538a92231c05e20575f181b06c5689d">shrinking</a> ()</td></tr>
<tr class="memdesc:ab538a92231c05e20575f181b06c5689d inherit pub_methods_classshark_1_1_qp_config"><td class="mdescLeft">&#160;</td><td class="mdescRight">Flag for shrinking in the decomposition solver.  <br /></td></tr>
<tr class="separator:ab538a92231c05e20575f181b06c5689d inherit pub_methods_classshark_1_1_qp_config"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac60da7ecd51c8eceea655cc60492e4a7 inherit pub_methods_classshark_1_1_qp_config" id="r_ac60da7ecd51c8eceea655cc60492e4a7"><td class="memItemLeft" align="right" valign="top">bool const &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_qp_config.html#ac60da7ecd51c8eceea655cc60492e4a7">shrinking</a> () const</td></tr>
<tr class="memdesc:ac60da7ecd51c8eceea655cc60492e4a7 inherit pub_methods_classshark_1_1_qp_config"><td class="mdescLeft">&#160;</td><td class="mdescRight">Flag for shrinking in the decomposition solver.  <br /></td></tr>
<tr class="separator:ac60da7ecd51c8eceea655cc60492e4a7 inherit pub_methods_classshark_1_1_qp_config"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5a4d6d3ff5c8acbd809108786e973f7a inherit pub_methods_classshark_1_1_qp_config" id="r_a5a4d6d3ff5c8acbd809108786e973f7a"><td class="memItemLeft" align="right" valign="top">bool &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_qp_config.html#a5a4d6d3ff5c8acbd809108786e973f7a">s2do</a> ()</td></tr>
<tr class="memdesc:a5a4d6d3ff5c8acbd809108786e973f7a inherit pub_methods_classshark_1_1_qp_config"><td class="mdescLeft">&#160;</td><td class="mdescRight">Flag for S2DO (instead of SMO)  <br /></td></tr>
<tr class="separator:a5a4d6d3ff5c8acbd809108786e973f7a inherit pub_methods_classshark_1_1_qp_config"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7f20cd2196e1fc785a18cb155eb5ec68 inherit pub_methods_classshark_1_1_qp_config" id="r_a7f20cd2196e1fc785a18cb155eb5ec68"><td class="memItemLeft" align="right" valign="top">bool const &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_qp_config.html#a7f20cd2196e1fc785a18cb155eb5ec68">s2do</a> () const</td></tr>
<tr class="memdesc:a7f20cd2196e1fc785a18cb155eb5ec68 inherit pub_methods_classshark_1_1_qp_config"><td class="mdescLeft">&#160;</td><td class="mdescRight">Flag for S2DO (instead of SMO)  <br /></td></tr>
<tr class="separator:a7f20cd2196e1fc785a18cb155eb5ec68 inherit pub_methods_classshark_1_1_qp_config"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a71328214090e442c9fee46103868b0ca inherit pub_methods_classshark_1_1_qp_config" id="r_a71328214090e442c9fee46103868b0ca"><td class="memItemLeft" align="right" valign="top">unsigned int &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_qp_config.html#a71328214090e442c9fee46103868b0ca">verbosity</a> ()</td></tr>
<tr class="memdesc:a71328214090e442c9fee46103868b0ca inherit pub_methods_classshark_1_1_qp_config"><td class="mdescLeft">&#160;</td><td class="mdescRight">Verbosity level of the solver.  <br /></td></tr>
<tr class="separator:a71328214090e442c9fee46103868b0ca inherit pub_methods_classshark_1_1_qp_config"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a60f71b218d096838f527c6eb62a75501 inherit pub_methods_classshark_1_1_qp_config" id="r_a60f71b218d096838f527c6eb62a75501"><td class="memItemLeft" align="right" valign="top">unsigned int const &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_qp_config.html#a60f71b218d096838f527c6eb62a75501">verbosity</a> () const</td></tr>
<tr class="memdesc:a60f71b218d096838f527c6eb62a75501 inherit pub_methods_classshark_1_1_qp_config"><td class="mdescLeft">&#160;</td><td class="mdescRight">Verbosity level of the solver.  <br /></td></tr>
<tr class="separator:a60f71b218d096838f527c6eb62a75501 inherit pub_methods_classshark_1_1_qp_config"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a240e6aeb51dee3764a4ee3962e0ff7e0 inherit pub_methods_classshark_1_1_qp_config" id="r_a240e6aeb51dee3764a4ee3962e0ff7e0"><td class="memItemLeft" align="right" valign="top">unsigned long long const &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_qp_config.html#a240e6aeb51dee3764a4ee3962e0ff7e0">accessCount</a> () const</td></tr>
<tr class="memdesc:a240e6aeb51dee3764a4ee3962e0ff7e0 inherit pub_methods_classshark_1_1_qp_config"><td class="mdescLeft">&#160;</td><td class="mdescRight">Number of kernel accesses.  <br /></td></tr>
<tr class="separator:a240e6aeb51dee3764a4ee3962e0ff7e0 inherit pub_methods_classshark_1_1_qp_config"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a435ff9b5dd3337872c2e49d46c95c417 inherit pub_methods_classshark_1_1_qp_config" id="r_a435ff9b5dd3337872c2e49d46c95c417"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_qp_config.html#a435ff9b5dd3337872c2e49d46c95c417">setMinAccuracy</a> (double a)</td></tr>
<tr class="separator:a435ff9b5dd3337872c2e49d46c95c417 inherit pub_methods_classshark_1_1_qp_config"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa0ebe3d3e7163bb1eb7a5f3a56b95644 inherit pub_methods_classshark_1_1_qp_config" id="r_aa0ebe3d3e7163bb1eb7a5f3a56b95644"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_qp_config.html#aa0ebe3d3e7163bb1eb7a5f3a56b95644">setMaxIterations</a> (unsigned long long i)</td></tr>
<tr class="separator:aa0ebe3d3e7163bb1eb7a5f3a56b95644 inherit pub_methods_classshark_1_1_qp_config"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac13ad894e8ac68325c6f7ebb629e644c inherit pub_methods_classshark_1_1_qp_config" id="r_ac13ad894e8ac68325c6f7ebb629e644c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_qp_config.html#ac13ad894e8ac68325c6f7ebb629e644c">setTargetValue</a> (double v)</td></tr>
<tr class="separator:ac13ad894e8ac68325c6f7ebb629e644c inherit pub_methods_classshark_1_1_qp_config"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1453635db8f97cec56f4f943e31e7520 inherit pub_methods_classshark_1_1_qp_config" id="r_a1453635db8f97cec56f4f943e31e7520"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_qp_config.html#a1453635db8f97cec56f4f943e31e7520">setMaxSeconds</a> (double s)</td></tr>
<tr class="separator:a1453635db8f97cec56f4f943e31e7520 inherit pub_methods_classshark_1_1_qp_config"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classshark_1_1_i_parameterizable"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classshark_1_1_i_parameterizable')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classshark_1_1_i_parameterizable.html">shark::IParameterizable&lt; VectorType &gt;</a></td></tr>
<tr class="memitem:a9e3a11172e74d1aa7292f3de4e2b6ebc inherit pub_methods_classshark_1_1_i_parameterizable" id="r_a9e3a11172e74d1aa7292f3de4e2b6ebc"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_i_parameterizable.html#a9e3a11172e74d1aa7292f3de4e2b6ebc">~IParameterizable</a> ()</td></tr>
<tr class="separator:a9e3a11172e74d1aa7292f3de4e2b6ebc inherit pub_methods_classshark_1_1_i_parameterizable"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="inherited" name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pro_attribs_classshark_1_1_abstract_svm_trainer"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_classshark_1_1_abstract_svm_trainer')"><img src="closed.png" alt="-"/>&#160;Protected Attributes inherited from <a class="el" href="classshark_1_1_abstract_svm_trainer.html">shark::AbstractSvmTrainer&lt; InputType, unsigned int, KernelClassifier&lt; InputType &gt;, AbstractWeightedTrainer&lt; KernelClassifier&lt; InputType &gt; &gt; &gt;</a></td></tr>
<tr class="memitem:aec319e3ac1af74e75d5414624412dac3 inherit pro_attribs_classshark_1_1_abstract_svm_trainer" id="r_aec319e3ac1af74e75d5414624412dac3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classshark_1_1_abstract_svm_trainer.html#acb7bddb6bc49cb6162708ad18d5f2ea3">KernelType</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_svm_trainer.html#aec319e3ac1af74e75d5414624412dac3">m_kernel</a></td></tr>
<tr class="separator:aec319e3ac1af74e75d5414624412dac3 inherit pro_attribs_classshark_1_1_abstract_svm_trainer"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa5c86718ae82edb7660fe5769ebc5b0f inherit pro_attribs_classshark_1_1_abstract_svm_trainer" id="r_aa5c86718ae82edb7660fe5769ebc5b0f"><td class="memItemLeft" align="right" valign="top">RealVector&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_svm_trainer.html#aa5c86718ae82edb7660fe5769ebc5b0f">m_regularizers</a></td></tr>
<tr class="memdesc:aa5c86718ae82edb7660fe5769ebc5b0f inherit pro_attribs_classshark_1_1_abstract_svm_trainer"><td class="mdescLeft">&#160;</td><td class="mdescRight">Vector of regularization parameters.  <br /></td></tr>
<tr class="separator:aa5c86718ae82edb7660fe5769ebc5b0f inherit pro_attribs_classshark_1_1_abstract_svm_trainer"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aee47ba0de2c00b34c32e78ec9751c121 inherit pro_attribs_classshark_1_1_abstract_svm_trainer" id="r_aee47ba0de2c00b34c32e78ec9751c121"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_svm_trainer.html#aee47ba0de2c00b34c32e78ec9751c121">m_trainOffset</a></td></tr>
<tr class="separator:aee47ba0de2c00b34c32e78ec9751c121 inherit pro_attribs_classshark_1_1_abstract_svm_trainer"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa3e2f2db97947d244213f63093a08878 inherit pro_attribs_classshark_1_1_abstract_svm_trainer" id="r_aa3e2f2db97947d244213f63093a08878"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_svm_trainer.html#aa3e2f2db97947d244213f63093a08878">m_unconstrained</a></td></tr>
<tr class="memdesc:aa3e2f2db97947d244213f63093a08878 inherit pro_attribs_classshark_1_1_abstract_svm_trainer"><td class="mdescLeft">&#160;</td><td class="mdescRight">Is log(C) stored internally as a parameter instead of C? If yes, then we get rid of the constraint C &gt; 0 on the level of the parameter interface.  <br /></td></tr>
<tr class="separator:aa3e2f2db97947d244213f63093a08878 inherit pro_attribs_classshark_1_1_abstract_svm_trainer"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0382adafdbe762f4456dc7858ea120c2 inherit pro_attribs_classshark_1_1_abstract_svm_trainer" id="r_a0382adafdbe762f4456dc7858ea120c2"><td class="memItemLeft" align="right" valign="top">std::size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_svm_trainer.html#a0382adafdbe762f4456dc7858ea120c2">m_cacheSize</a></td></tr>
<tr class="memdesc:a0382adafdbe762f4456dc7858ea120c2 inherit pro_attribs_classshark_1_1_abstract_svm_trainer"><td class="mdescLeft">&#160;</td><td class="mdescRight">Number of values in the kernel cache. The size of the cache in bytes is the size of one entry (4 for float, 8 for double) times this number.  <br /></td></tr>
<tr class="separator:a0382adafdbe762f4456dc7858ea120c2 inherit pro_attribs_classshark_1_1_abstract_svm_trainer"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_attribs_classshark_1_1_qp_config"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_classshark_1_1_qp_config')"><img src="closed.png" alt="-"/>&#160;Protected Attributes inherited from <a class="el" href="classshark_1_1_qp_config.html">shark::QpConfig</a></td></tr>
<tr class="memitem:a5032921be220d76232e7db3db3ef5225 inherit pro_attribs_classshark_1_1_qp_config" id="r_a5032921be220d76232e7db3db3ef5225"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structshark_1_1_qp_stopping_condition.html">QpStoppingCondition</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_qp_config.html#a5032921be220d76232e7db3db3ef5225">m_stoppingcondition</a></td></tr>
<tr class="memdesc:a5032921be220d76232e7db3db3ef5225 inherit pro_attribs_classshark_1_1_qp_config"><td class="mdescLeft">&#160;</td><td class="mdescRight">conditions for when to stop the QP solver  <br /></td></tr>
<tr class="separator:a5032921be220d76232e7db3db3ef5225 inherit pro_attribs_classshark_1_1_qp_config"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a994efb841504c52e509d0bac04f41fb2 inherit pro_attribs_classshark_1_1_qp_config" id="r_a994efb841504c52e509d0bac04f41fb2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structshark_1_1_qp_solution_properties.html">QpSolutionProperties</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_qp_config.html#a994efb841504c52e509d0bac04f41fb2">m_solutionproperties</a></td></tr>
<tr class="memdesc:a994efb841504c52e509d0bac04f41fb2 inherit pro_attribs_classshark_1_1_qp_config"><td class="mdescLeft">&#160;</td><td class="mdescRight">properties of the approximate solution found by the solver  <br /></td></tr>
<tr class="separator:a994efb841504c52e509d0bac04f41fb2 inherit pro_attribs_classshark_1_1_qp_config"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5d65189eed8ced4b3cadb2392cf2b46c inherit pro_attribs_classshark_1_1_qp_config" id="r_a5d65189eed8ced4b3cadb2392cf2b46c"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_qp_config.html#a5d65189eed8ced4b3cadb2392cf2b46c">m_precomputedKernelMatrix</a></td></tr>
<tr class="memdesc:a5d65189eed8ced4b3cadb2392cf2b46c inherit pro_attribs_classshark_1_1_qp_config"><td class="mdescLeft">&#160;</td><td class="mdescRight">should the solver use a precomputed kernel matrix?  <br /></td></tr>
<tr class="separator:a5d65189eed8ced4b3cadb2392cf2b46c inherit pro_attribs_classshark_1_1_qp_config"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3288e99aefde9b1d7e30992d5feb582e inherit pro_attribs_classshark_1_1_qp_config" id="r_a3288e99aefde9b1d7e30992d5feb582e"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_qp_config.html#a3288e99aefde9b1d7e30992d5feb582e">m_sparsify</a></td></tr>
<tr class="memdesc:a3288e99aefde9b1d7e30992d5feb582e inherit pro_attribs_classshark_1_1_qp_config"><td class="mdescLeft">&#160;</td><td class="mdescRight">should the trainer sparsify the model after training?  <br /></td></tr>
<tr class="separator:a3288e99aefde9b1d7e30992d5feb582e inherit pro_attribs_classshark_1_1_qp_config"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac7bd118550c2bfa50f9497182b4b086d inherit pro_attribs_classshark_1_1_qp_config" id="r_ac7bd118550c2bfa50f9497182b4b086d"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_qp_config.html#ac7bd118550c2bfa50f9497182b4b086d">m_shrinking</a></td></tr>
<tr class="memdesc:ac7bd118550c2bfa50f9497182b4b086d inherit pro_attribs_classshark_1_1_qp_config"><td class="mdescLeft">&#160;</td><td class="mdescRight">should shrinking be used?  <br /></td></tr>
<tr class="separator:ac7bd118550c2bfa50f9497182b4b086d inherit pro_attribs_classshark_1_1_qp_config"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a82049a531c2f9621c737c8fe51d53739 inherit pro_attribs_classshark_1_1_qp_config" id="r_a82049a531c2f9621c737c8fe51d53739"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_qp_config.html#a82049a531c2f9621c737c8fe51d53739">m_s2do</a></td></tr>
<tr class="memdesc:a82049a531c2f9621c737c8fe51d53739 inherit pro_attribs_classshark_1_1_qp_config"><td class="mdescLeft">&#160;</td><td class="mdescRight">should S2DO be used instead of SMO?  <br /></td></tr>
<tr class="separator:a82049a531c2f9621c737c8fe51d53739 inherit pro_attribs_classshark_1_1_qp_config"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad6f54a3b58cd6a2e1774d5decf8fcc79 inherit pro_attribs_classshark_1_1_qp_config" id="r_ad6f54a3b58cd6a2e1774d5decf8fcc79"><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_qp_config.html#ad6f54a3b58cd6a2e1774d5decf8fcc79">m_verbosity</a></td></tr>
<tr class="memdesc:ad6f54a3b58cd6a2e1774d5decf8fcc79 inherit pro_attribs_classshark_1_1_qp_config"><td class="mdescLeft">&#160;</td><td class="mdescRight">verbosity level (currently unused)  <br /></td></tr>
<tr class="separator:ad6f54a3b58cd6a2e1774d5decf8fcc79 inherit pro_attribs_classshark_1_1_qp_config"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a073a19a266651c9a689f433b93ea4e3f inherit pro_attribs_classshark_1_1_qp_config" id="r_a073a19a266651c9a689f433b93ea4e3f"><td class="memItemLeft" align="right" valign="top">unsigned long long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_qp_config.html#a073a19a266651c9a689f433b93ea4e3f">m_accessCount</a></td></tr>
<tr class="memdesc:a073a19a266651c9a689f433b93ea4e3f inherit pro_attribs_classshark_1_1_qp_config"><td class="mdescLeft">&#160;</td><td class="mdescRight">kernel access count  <br /></td></tr>
<tr class="separator:a073a19a266651c9a689f433b93ea4e3f inherit pro_attribs_classshark_1_1_qp_config"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><div class="compoundTemplParams">template&lt;class <a class="el" href="classshark_1_1_abstract_weighted_trainer.html#a11e51b154b87ed5e33b6ce2c830cd3d6">InputType</a>, class CacheType = float&gt;<br />
class shark::CSvmTrainer&lt; InputType, CacheType &gt;</div><p>Training of C-SVMs for binary classification. </p>
<p>The C-SVM is the "standard" support vector machine for binary (two-class) classification. Given are data tuples \( (x_i, y_i) \) with x-component denoting input and y-component denoting the label +1 or -1 (see the tutorial on label conventions; the implementation uses values 0/1), a kernel function k(x, x') and a regularization constant C &gt; 0. Let H denote the kernel induced reproducing kernel Hilbert space of k, and let \( \phi \) denote the corresponding feature map. Then the SVM classifier is the function  </p><p class="formulaDsp">
\[
    h(x) = \mathop{sign} (f(x))
\]
</p>
  <p class="formulaDsp">
\[
    f(x) = \langle w, \phi(x) \rangle + b
\]
</p>
<p> with coefficients w and b given by the (primal) optimization problem  </p><p class="formulaDsp">
\[
    \min \frac{1}{2} \|w\|^2 + C \sum_i L(y_i, f(x_i)),
\]
</p>
<p> where \( L(y, f(x)) = \max\{0, 1 - y \cdot f(x)\} \) denotes the hinge loss.</p>
<p>For details refer to the paper:<br  />
 </p>
<p>Support-Vector Networks. Corinna Cortes and Vladimir Vapnik, Machine Learning, vol. 20 (1995), pp. 273-297.</p>
<p>or simply to the Wikipedia article:<br  />
 <a href="http://en.wikipedia.org/wiki/Support_vector_machine">http://en.wikipedia.org/wiki/Support_vector_machine</a> </p>

<p class="definition">Definition at line <a class="el" href="_c_svm_trainer_8h_source.html#l00074">74</a> of file <a class="el" href="_c_svm_trainer_8h_source.html">CSvmTrainer.h</a>.</p>
</div><h2 class="groupheader">Member Typedef Documentation</h2>
<a id="abe46b77ba0322531583fe4fe08a5a0d5" name="abe46b77ba0322531583fe4fe08a5a0d5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abe46b77ba0322531583fe4fe08a5a0d5">&#9670;&#160;</a></span>KernelType</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="classshark_1_1_abstract_weighted_trainer.html#a11e51b154b87ed5e33b6ce2c830cd3d6">InputType</a> , class CacheType  = float&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="classshark_1_1_abstract_kernel_function.html">AbstractKernelFunction</a>&lt;<a class="el" href="classshark_1_1_abstract_weighted_trainer.html#a11e51b154b87ed5e33b6ce2c830cd3d6">InputType</a>&gt; <a class="el" href="classshark_1_1_c_svm_trainer.html">shark::CSvmTrainer</a>&lt; <a class="el" href="classshark_1_1_abstract_weighted_trainer.html#a11e51b154b87ed5e33b6ce2c830cd3d6">InputType</a>, CacheType &gt;::KernelType</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_c_svm_trainer_8h_source.html#l00098">98</a> of file <a class="el" href="_c_svm_trainer_8h_source.html">CSvmTrainer.h</a>.</p>

</div>
</div>
<a id="a992b58169d0ffd5be0d355b6432f32da" name="a992b58169d0ffd5be0d355b6432f32da"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a992b58169d0ffd5be0d355b6432f32da">&#9670;&#160;</a></span>QpFloatType</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="classshark_1_1_abstract_weighted_trainer.html#a11e51b154b87ed5e33b6ce2c830cd3d6">InputType</a> , class CacheType  = float&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef CacheType <a class="el" href="classshark_1_1_c_svm_trainer.html">shark::CSvmTrainer</a>&lt; <a class="el" href="classshark_1_1_abstract_weighted_trainer.html#a11e51b154b87ed5e33b6ce2c830cd3d6">InputType</a>, CacheType &gt;::QpFloatType</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Convenience typedefs: this and many of the below typedefs build on the class template type CacheType. Simply changing that one template parameter CacheType thus allows to flexibly switch between using float or double as type for caching the kernel values. The default is float, offering sufficient accuracy in the vast majority of cases, at a memory cost of only four bytes. However, the template parameter makes it easy to use double instead, (e.g., in case high accuracy training is needed). </p>

<p class="definition">Definition at line <a class="el" href="_c_svm_trainer_8h_source.html#l00096">96</a> of file <a class="el" href="_c_svm_trainer_8h_source.html">CSvmTrainer.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="ab9e81925c8a8a25db71614edcae230f0" name="ab9e81925c8a8a25db71614edcae230f0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab9e81925c8a8a25db71614edcae230f0">&#9670;&#160;</a></span>CSvmTrainer() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="classshark_1_1_abstract_weighted_trainer.html#a11e51b154b87ed5e33b6ce2c830cd3d6">InputType</a> , class CacheType  = float&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_c_svm_trainer.html">shark::CSvmTrainer</a>&lt; <a class="el" href="classshark_1_1_abstract_weighted_trainer.html#a11e51b154b87ed5e33b6ce2c830cd3d6">InputType</a>, CacheType &gt;::CSvmTrainer </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classshark_1_1_c_svm_trainer.html#abe46b77ba0322531583fe4fe08a5a0d5">KernelType</a> *&#160;</td>
          <td class="paramname"><em>kernel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>C</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>offset</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>unconstrained</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Constructor </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">kernel</td><td>kernel function to use for training and prediction </td></tr>
    <tr><td class="paramname">C</td><td>regularization parameter - always the 'true' value of C, even when unconstrained is set </td></tr>
    <tr><td class="paramname">offset</td><td>whether to train the svm with offset term </td></tr>
    <tr><td class="paramname">unconstrained</td><td>when a C-value is given via setParameter, should it be piped through the exp-function before using it in the solver? </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_c_svm_trainer_8h_source.html#l00105">105</a> of file <a class="el" href="_c_svm_trainer_8h_source.html">CSvmTrainer.h</a>.</p>

</div>
</div>
<a id="a055a354238f55019457ffcdc7c5d8d76" name="a055a354238f55019457ffcdc7c5d8d76"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a055a354238f55019457ffcdc7c5d8d76">&#9670;&#160;</a></span>CSvmTrainer() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="classshark_1_1_abstract_weighted_trainer.html#a11e51b154b87ed5e33b6ce2c830cd3d6">InputType</a> , class CacheType  = float&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_c_svm_trainer.html">shark::CSvmTrainer</a>&lt; <a class="el" href="classshark_1_1_abstract_weighted_trainer.html#a11e51b154b87ed5e33b6ce2c830cd3d6">InputType</a>, CacheType &gt;::CSvmTrainer </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classshark_1_1_c_svm_trainer.html#abe46b77ba0322531583fe4fe08a5a0d5">KernelType</a> *&#160;</td>
          <td class="paramname"><em>kernel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>negativeC</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>positiveC</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>offset</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>unconstrained</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Constructor </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">kernel</td><td>kernel function to use for training and prediction </td></tr>
    <tr><td class="paramname">negativeC</td><td>regularization parameter of the negative class (label 0) </td></tr>
    <tr><td class="paramname">positiveC</td><td>regularization parameter of the positive class (label 1) </td></tr>
    <tr><td class="paramname">offset</td><td>whether to train the svm with offset term </td></tr>
    <tr><td class="paramname">unconstrained</td><td>when a C-value is given via setParameter, should it be piped through the exp-function before using it in the solver? </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_c_svm_trainer_8h_source.html#l00115">115</a> of file <a class="el" href="_c_svm_trainer_8h_source.html">CSvmTrainer.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="aa41c04a121457ef9ace253feac0bf42d" name="aa41c04a121457ef9ace253feac0bf42d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa41c04a121457ef9ace253feac0bf42d">&#9670;&#160;</a></span>get_db_dParams()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="classshark_1_1_abstract_weighted_trainer.html#a11e51b154b87ed5e33b6ce2c830cd3d6">InputType</a> , class CacheType  = float&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">RealVector const  &amp; <a class="el" href="classshark_1_1_c_svm_trainer.html">shark::CSvmTrainer</a>&lt; <a class="el" href="classshark_1_1_abstract_weighted_trainer.html#a11e51b154b87ed5e33b6ce2c830cd3d6">InputType</a>, CacheType &gt;::get_db_dParams </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_c_svm_trainer_8h_source.html#l00279">279</a> of file <a class="el" href="_c_svm_trainer_8h_source.html">CSvmTrainer.h</a>.</p>

</div>
</div>
<a id="a9dc25f037d2af2005d1fbfd52ceffb55" name="a9dc25f037d2af2005d1fbfd52ceffb55"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9dc25f037d2af2005d1fbfd52ceffb55">&#9670;&#160;</a></span>name()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="classshark_1_1_abstract_weighted_trainer.html#a11e51b154b87ed5e33b6ce2c830cd3d6">InputType</a> , class CacheType  = float&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::string <a class="el" href="classshark_1_1_c_svm_trainer.html">shark::CSvmTrainer</a>&lt; <a class="el" href="classshark_1_1_abstract_weighted_trainer.html#a11e51b154b87ed5e33b6ce2c830cd3d6">InputType</a>, CacheType &gt;::name </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>From <a class="el" href="classshark_1_1_i_nameable.html" title="This class is an interface for all objects which can have a name.">INameable</a>: return the class name. </p>

<p>Reimplemented from <a class="el" href="classshark_1_1_i_nameable.html#a9893f99314de30cd472e649c235d0db4">shark::INameable</a>.</p>

<p class="definition">Definition at line <a class="el" href="_c_svm_trainer_8h_source.html#l00120">120</a> of file <a class="el" href="_c_svm_trainer_8h_source.html">CSvmTrainer.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="_c_svm_tutorial_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627">main()</a>.</p>

</div>
</div>
<a id="a7fdb7e988fa0949ca5e96faf9c7bcf48" name="a7fdb7e988fa0949ca5e96faf9c7bcf48"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7fdb7e988fa0949ca5e96faf9c7bcf48">&#9670;&#160;</a></span>setComputeBinaryDerivative()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="classshark_1_1_abstract_weighted_trainer.html#a11e51b154b87ed5e33b6ce2c830cd3d6">InputType</a> , class CacheType  = float&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classshark_1_1_c_svm_trainer.html">shark::CSvmTrainer</a>&lt; <a class="el" href="classshark_1_1_abstract_weighted_trainer.html#a11e51b154b87ed5e33b6ce2c830cd3d6">InputType</a>, CacheType &gt;::setComputeBinaryDerivative </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>compute</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_c_svm_trainer_8h_source.html#l00123">123</a> of file <a class="el" href="_c_svm_trainer_8h_source.html">CSvmTrainer.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_svm_logistic_interpretation.html#aaf23373024f5c16cb6de60ee2c4fc2c8">shark::SvmLogisticInterpretation&lt; InputType &gt;::evalDerivative()</a>.</p>

</div>
</div>
<a id="ac9d92bc56fc0a8fa0d73631cb3cbf323" name="ac9d92bc56fc0a8fa0d73631cb3cbf323"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac9d92bc56fc0a8fa0d73631cb3cbf323">&#9670;&#160;</a></span>setMcSvmType()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="classshark_1_1_abstract_weighted_trainer.html#a11e51b154b87ed5e33b6ce2c830cd3d6">InputType</a> , class CacheType  = float&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classshark_1_1_c_svm_trainer.html">shark::CSvmTrainer</a>&lt; <a class="el" href="classshark_1_1_abstract_weighted_trainer.html#a11e51b154b87ed5e33b6ce2c830cd3d6">InputType</a>, CacheType &gt;::setMcSvmType </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespaceshark.html#acd7a165c1049db7d676d77e708f53112">McSvm</a>&#160;</td>
          <td class="paramname"><em>type</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>sets the type of the multi-class svm used </p>

<p class="definition">Definition at line <a class="el" href="_c_svm_trainer_8h_source.html#l00128">128</a> of file <a class="el" href="_c_svm_trainer_8h_source.html">CSvmTrainer.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="_mc_svm_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">main()</a>.</p>

</div>
</div>
<a id="a9e801518bfba9d02e0749181a5deb0fc" name="a9e801518bfba9d02e0749181a5deb0fc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9e801518bfba9d02e0749181a5deb0fc">&#9670;&#160;</a></span>train() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="classshark_1_1_abstract_weighted_trainer.html#a11e51b154b87ed5e33b6ce2c830cd3d6">InputType</a> , class CacheType  = float&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classshark_1_1_c_svm_trainer.html">shark::CSvmTrainer</a>&lt; <a class="el" href="classshark_1_1_abstract_weighted_trainer.html#a11e51b154b87ed5e33b6ce2c830cd3d6">InputType</a>, CacheType &gt;::train </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structshark_1_1_kernel_classifier.html">KernelClassifier</a>&lt; <a class="el" href="classshark_1_1_abstract_weighted_trainer.html#a11e51b154b87ed5e33b6ce2c830cd3d6">InputType</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>svm</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classshark_1_1_labeled_data.html">LabeledData</a>&lt; <a class="el" href="classshark_1_1_abstract_weighted_trainer.html#a11e51b154b87ed5e33b6ce2c830cd3d6">InputType</a>, unsigned int &gt; const &amp;&#160;</td>
          <td class="paramname"><em>dataset</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Train the C-SVM. </p>

<p class="definition">Definition at line <a class="el" href="_c_svm_trainer_8h_source.html#l00134">134</a> of file <a class="el" href="_c_svm_trainer_8h_source.html">CSvmTrainer.h</a>.</p>

<p class="reference">References <a class="el" href="namespaceshark.html#acd7a165c1049db7d676d77e708f53112a6fb4f22992a0d164b77267fde5477248">shark::ADM</a>, <a class="el" href="namespaceshark.html#acd7a165c1049db7d676d77e708f53112a292f535a3b6fe8853df2f03c8ed890a1">shark::ATM</a>, <a class="el" href="namespaceshark.html#acd7a165c1049db7d676d77e708f53112a600d2c32c47d0285e1df97492ed3bd35">shark::ATS</a>, <a class="el" href="namespaceshark.html#acd7a165c1049db7d676d77e708f53112a8d7e99c73cd5a10adaaf4c9f9a520368">shark::CS</a>, <a class="el" href="classshark_1_1_classifier.html#adf58b2ed9969bad9828772dd23c59c02">shark::Classifier&lt; Model &gt;::decisionFunction()</a>, <a class="el" href="group__shark__globals.html#gaec57b5f22b3e8d2d67ad4b621f30fd54">shark::LabeledData&lt; InputT, LabelT &gt;::element()</a>, <a class="el" href="group__shark__globals.html#ga6f74e657c7e0c8a32b2456fb328bd653">shark::LabeledData&lt; InputT, LabelT &gt;::inputs()</a>, <a class="el" href="group__shark__globals.html#ga6328a5aa2570c01a5ac5f25076071663">shark::LabeledData&lt; InputT, LabelT &gt;::labels()</a>, <a class="el" href="namespaceshark.html#acd7a165c1049db7d676d77e708f53112a69120030cbf53ae8224b9b4865ab3945">shark::LLW</a>, <a class="el" href="classshark_1_1_abstract_svm_trainer.html#aec319e3ac1af74e75d5414624412dac3">shark::AbstractSvmTrainer&lt; InputType, unsigned int, KernelClassifier&lt; InputType &gt;, AbstractWeightedTrainer&lt; KernelClassifier&lt; InputType &gt; &gt; &gt;::m_kernel</a>, <a class="el" href="classshark_1_1_abstract_svm_trainer.html#aee47ba0de2c00b34c32e78ec9751c121">shark::AbstractSvmTrainer&lt; InputType, unsigned int, KernelClassifier&lt; InputType &gt;, AbstractWeightedTrainer&lt; KernelClassifier&lt; InputType &gt; &gt; &gt;::m_trainOffset</a>, <a class="el" href="namespaceshark.html#acd7a165c1049db7d676d77e708f53112ada27331778aba3d85176f2c76f49bcc8">shark::MMR</a>, <a class="el" href="group__shark__globals.html#ga1fee3b5830ae11a78109e8c0265c6569">shark::numberOfClasses()</a>, <a class="el" href="group__shark__globals.html#ga5333445992cd6b14392cd80a1ab5403c">shark::LabeledData&lt; InputT, LabelT &gt;::numberOfElements()</a>, <a class="el" href="namespaceshark.html#acd7a165c1049db7d676d77e708f53112a586ba478b7ebec665f3df120799b6c2e">shark::OVA</a>, <a class="el" href="namespaceshark.html#acd7a165c1049db7d676d77e708f53112a354624ba01e474ac153a71c5e0d3b266">shark::ReinforcedSvm</a>, <a class="el" href="classshark_1_1_qp_config.html#a32477b55142b80bd9f82f2a2e201f5b9">shark::QpConfig::sparsify()</a>, <a class="el" href="classshark_1_1_qp_sparse_array.html#aeaeaa2435983010624e3d8149fb8cb26">shark::QpSparseArray&lt; QpFloatType &gt;::width()</a>, and <a class="el" href="namespaceshark.html#acd7a165c1049db7d676d77e708f53112a0a9b52fb6605edc74fd7d5359f34477e">shark::WW</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_svm_logistic_interpretation.html#a67444886b71f0bef297aaa3d396e6b81">shark::SvmLogisticInterpretation&lt; InputType &gt;::eval()</a>, <a class="el" href="classshark_1_1_svm_logistic_interpretation.html#aaf23373024f5c16cb6de60ee2c4fc2c8">shark::SvmLogisticInterpretation&lt; InputType &gt;::evalDerivative()</a>, <a class="el" href="_c_svm_grid_search_tutorial_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">main()</a>, <a class="el" href="kernel__csvm_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627">main()</a>, and <a class="el" href="_c_svm_max_likelihood_m_s_8cpp.html#a28267e6f7ec1120183ffd7ae7a9a60d2">run_one_trial()</a>.</p>

</div>
</div>
<a id="a5444acc9ade8ab1c3550bd2efafa4e59" name="a5444acc9ade8ab1c3550bd2efafa4e59"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5444acc9ade8ab1c3550bd2efafa4e59">&#9670;&#160;</a></span>train() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="classshark_1_1_abstract_weighted_trainer.html#a11e51b154b87ed5e33b6ce2c830cd3d6">InputType</a> , class CacheType  = float&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classshark_1_1_c_svm_trainer.html">shark::CSvmTrainer</a>&lt; <a class="el" href="classshark_1_1_abstract_weighted_trainer.html#a11e51b154b87ed5e33b6ce2c830cd3d6">InputType</a>, CacheType &gt;::train </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structshark_1_1_kernel_classifier.html">KernelClassifier</a>&lt; <a class="el" href="classshark_1_1_abstract_weighted_trainer.html#a11e51b154b87ed5e33b6ce2c830cd3d6">InputType</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>svm</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classshark_1_1_weighted_labeled_data.html">WeightedLabeledData</a>&lt; <a class="el" href="classshark_1_1_abstract_weighted_trainer.html#a11e51b154b87ed5e33b6ce2c830cd3d6">InputType</a>, unsigned int &gt; const &amp;&#160;</td>
          <td class="paramname"><em>dataset</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Train the C-SVM using weights. </p>

<p class="definition">Definition at line <a class="el" href="_c_svm_trainer_8h_source.html#l00259">259</a> of file <a class="el" href="_c_svm_trainer_8h_source.html">CSvmTrainer.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_classifier.html#adf58b2ed9969bad9828772dd23c59c02">shark::Classifier&lt; Model &gt;::decisionFunction()</a>, <a class="el" href="classshark_1_1_weighted_labeled_data.html#ad11b0613785e1c6f36f6dd5d32662ead">shark::WeightedLabeledData&lt; InputT, LabelT &gt;::inputs()</a>, <a class="el" href="classshark_1_1_abstract_svm_trainer.html#aec319e3ac1af74e75d5414624412dac3">shark::AbstractSvmTrainer&lt; InputType, unsigned int, KernelClassifier&lt; InputType &gt;, AbstractWeightedTrainer&lt; KernelClassifier&lt; InputType &gt; &gt; &gt;::m_kernel</a>, <a class="el" href="classshark_1_1_abstract_svm_trainer.html#aee47ba0de2c00b34c32e78ec9751c121">shark::AbstractSvmTrainer&lt; InputType, unsigned int, KernelClassifier&lt; InputType &gt;, AbstractWeightedTrainer&lt; KernelClassifier&lt; InputType &gt; &gt; &gt;::m_trainOffset</a>, <a class="el" href="group__shark__globals.html#ga1fee3b5830ae11a78109e8c0265c6569">shark::numberOfClasses()</a>, <a class="el" href="_exception_8h.html#adce1f80097c69010f5eab2618fa2e971">SHARK_RUNTIME_CHECK</a>, and <a class="el" href="classshark_1_1_qp_config.html#a32477b55142b80bd9f82f2a2e201f5b9">shark::QpConfig::sparsify()</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>include/shark/Algorithms/Trainers/<a class="el" href="_c_svm_trainer_8h_source.html">CSvmTrainer.h</a></li>
</ul>
</div><!-- contents -->
</div>
</body>
</html>
